package com.lhm.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Cart {
    private Integer id;
    private Integer uid;
    private Integer bookid;
    private Integer num;

    private Date tcreate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    public Cart(Integer id, Integer uid, Integer bookid, Integer num, Date tcreate) {
        this.id = id;
        this.uid = uid;
        this.bookid = bookid;
        this.num = num;
        this.tcreate = tcreate;
    }

    public Cart() {
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", uid=" + uid +
                ", bookid=" + bookid +
                ", num=" + num +
                ", tcreate=" + tcreate +
                '}';
    }
}
